﻿using Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Linguist.Flat
{
    public partial class FlatLinguist
    {

        /// <summary>
        /// The search graph that is produced by the flat linguist.
        /// </summary>
        protected class FlatSearchGraph : ISearchGraph
        {

            /**
            /// An array of classes that represents the order in which the states will be returned.
             */
            private ISearchState initialState;


            /**
            /// Constructs a flast search graph with the given initial state
             *
            /// @param initialState the initial state
             */
            public FlatSearchGraph(ISearchState initialState)
            {
                this.initialState = initialState;
            }

            public Boolean getWordTokenFirst()
            {
                return true;
            }

            /*
           /// (non-Javadoc)
            *
           /// @see edu.cmu.sphinx.linguist.SearchGraph#getInitialState()
            */
            public ISearchState getInitialState()
            {
                return initialState;
            }


            /*
           /// (non-Javadoc)
            *
           /// @see edu.cmu.sphinx.linguist.SearchGraph#getNumStateOrder()
            */
            public int getNumStateOrder()
            {
                return 7;
            }
        }
    }
}
